package com.techsen.tsweb.sys.domain;

import org.springframework.beans.BeanUtils;

/**
 * 部门
 */
public class Dept extends Org {

    private static final long serialVersionUID = 6845556269705720873L;
    
    /**
     * 对应的组织ID
     */
    private String orgId;
    
    public Dept() {
    }
    
    public Dept(Org org) {
        BeanUtils.copyProperties(org, this);
        this.setOrgId(org.getId()).setId(null);
    }

    public String getOrgId() {
        return orgId;
    }

    public Dept setOrgId(String orgId) {
        this.orgId = orgId;
        return this;
    }
    
    @Override
    public String getOrgType() {
        return this.getClass().getSimpleName().toLowerCase();
    }

}
